package com.cpi.cornpp.corntypes.view;

import java.io.Serializable;

/**
 * Corn Types View
 * 
 * @author Edgar Joao
 * @see Serializable
 */
public class CornTypesView implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5749537558746941798L;
	
	private int cornTypeId;
	private String code;
	private String description;
	
	public int getCornTypeId() {
		return cornTypeId;
	}
	public void setCornTypeId(int argCornTypeId) {
		cornTypeId = argCornTypeId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String argCode) {
		code = argCode;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String argDescription) {
		description = argDescription;
	}
	public boolean equals(Object obj) {
		boolean equal = false;
		if( obj != null && obj  instanceof CornTypesView ){
			if ( cornTypeId == ((CornTypesView)obj).getCornTypeId()){
				equal = true;
			}
		}
		return equal;
	}
}
